#include <stdio.h>
#include <stdlib.h>
#include "chapter4/SequentialSearch.c"

int main()
{
    List Tbl = (List) malloc(sizeof(struct LNode));
    Tbl->Length = 0;
    for (int i = 1; i < MAXSIZE; i++) {
        Tbl->Data[i] = i;
        Tbl->Length++;
    }
    int result = SequentialSearch(Tbl, 9);
    if (result == 0) {
        printf("Not found\n");
    } else {
        printf("Found at position %d\n", result);
    }

    return 0;
}